Added unit tests using mocha
Merge pull request #12 from djuretic/master

Unit tests