added tests to check the validity of cfg.url