Fixed JavaScript tests.