Move attribute model to separate package
Create test for attribute model