Fixed bug caused by passing test domain with slashes in url