VID-2069 fixing JS unit tests