Converting unittests to mocha
Merge pull request #401 from ilyavolodin/mocha

Converting unittests to mocha (refs #397)