Unit tests for Record