Convert tests from tap to mocha. Closes #3