ADEN-131 Fix to JS unit tests