Fixed js tests