Add tests

Add mocha and should.js; Add a test; Adjust the grunt and the files accordingly.
mixed tabs and spaces