Add test support for remove_fields.