modified the test to assert when failure occurs