JS unit tests fixed.