Fixing logic for eventhandler

Fixed an issue that caused events to not pass the event object to
handlers.
Adding test coverage to Carousel