updates to JS unit tests