Writing a test to check custom routes