fixed tests with new API errors
fixed tests