Added a test for isValidUrl function