Refactor PointOfFailureTest class