Modify tests to use variables for visit routes.