updated unit test to accept URL as a parameter.

Change-Id: Ic4ce19c7a7afb6311e5aedf322a16ed806c7e7f6