Add test for nested fields