Converting formatter tests and core
Merge pull request #409 from ilyavolodin/mocha

Converting formatter tests and core to mocha (fixes #397)