added tests for validateUrl