Add tests

Add mocha and should.js; Add a test; Adjust the grunt and the files accordingly.
This file should be in `common` lib