add some testcases for validateBrowserRules