Record model, validations and tests