add test for Record logic