test: fix broken TestRecord.test_attr