Basics tests with mocha.js

Simple test suite added. New `mocha` grunt task to run tests.