mocha tests, started refactoring dict.js