added tests to the events realm