Fixes #5: Refactored tests using mocha and node's assert library.