Preparing a URL for testing