handle relative urls in test utils