ad rules and tests