tests speed and direction