getUrl function is not tested -> https://coveralls.io/files/124016088#L161