Added a test for duplicate fields.