[CDE-406]: fixed javascript unit tests

@pamval please review