Add unit-test for field exclusion