New checks in models/allocation_rule_inventory.rb, and simple unit tests.