Added unit test for class model serialization
Removed obsolete method