testUrlAndReturnPage function added