Fixed JS unit tests.