fix for test_errors