refactor model/attribute/field test into seperate file