main js tests