refactor model/attribute/types test into seperate file