added tests for error handling during record event