test and model validations