add_route test and function