Fix the "Done not a function" error.

* In init, if `done` was not passed, we called `noOp()` instead of setting a reference to it.
* Added a unit test to check for the problem

fixes #232
Merge pull request #279 from mozilla/issue-232-done-not-a-function

Fix the "Done not a function" error.