Refactored rules test fixture