pure Js tests