Tests for model validations and associations