Optimize tests for ACL rules