mocha-ize the tests

Added a bit of structure for NPM and mocha-ize the tests. What do you think ?