Fixed test cases for python routes