#3 test domain when path is not empty
#3 refactored tests
#3 test url with trailing slash
#3 test url with multiple slashes
#3 refactored tests, removed unnecessary ones