fix error_handling_tests