Add test for nested record types.