added fly_away and match_speed functions and unit tests