test for adding invalid field