VID-2079 fixing JS unit tests