Changed the way the route js file works so that I can correctly map the /test url to the function I want.