added unittests for some model classes