Added test cases for Sampler, Event, UserEvent