Tests decelerate function to make sure speed does not go below 0