Add a test and a test runner.

- Add a test for extra args getting passed to subscribers.
- Add a mocha_phantomjs task to the gruntfile for test running.