Implement @rule selector test system, and use it