delete_route test and function