and tests in js