js tests