refactoring model attributes test