Fix js unit test.