update_route test and function