Allow the ability to define the function used for tests in the test runner.
Add failing tests for custom jquery events.
Add custom jquery events. Fixes #11.