Changing the test to return 1 when there is an error