Improve test for nested record