add a test for prepending SCRIPT_NAME to generated urls