[CDE-406]: fixed javascript unit tests