add test in js