fixed #1647: Updating JS-test.