fixed bug inroduced in c567b10

swift:// url relative path feature was not tested enough
added proper tests and fixed bugs