Knot Polynomial As a Tool for Fault Detection