Added tests for dictionary.js