Unit tests for objects.FillIPolicy() + small fix