adding test cases and some model classes (view classes are not done)