added test for getUrl