Fixed 'URI is not hierarchical' exception while running unit tests