Add tests to HivePolicy