rewrote utils tests for mocha
Merge pull request #472 from saschagehlich/tests/utils

rewrote utils tests for mocha