Add test cases for python routes