Replace nodeunit with mocha.
Merge branch 'issue-12' into issue-17 to add new tests for issue-17.
add tests for PulsarExec constructor.