Add tests

Add mocha and should.js; Add a test; Adjust the grunt and the files accordingly.
Is this code left commented on purpose? If it is not needed, it is better to delete it.