added tests for events and images