add integration test for direction with waypoints