test using mocha
refactor dict
refactor