rewrote utils tests for mocha