added tests to classModelTest, and added a modulesMod class