Unit tests for error handling of user provided Observer