implemented tests for mouse events

this fixes #2.