Fixed the testcase by using visit instead of get