Added logic and test to add routes and display the added routes