added todo js tests