Adds tests for jQuery listener