create custom class that emits events - test them