Fixing minor issue where REQUEST_URI is not set during test cases