Retain 5.2 compatibility in DirectorTest

parse_url() doesn't support schema-less URLs in 5.2