Added tests for getUrl method