Make absolute uri test more general

Don't wrongly assume that app have /foo/bar path and it's host is localhost