Added unit tests and Grunt task for them