Update tests for error handling