Add unit test for normal getUrl cases