add tests for Record.valid?