Add tests for setPolicies