[FYR] add javascript test for dictionary controller