Add event listener unit tests

Closes #13