passing tests for error handling