add a test for error handling