modified indentation of models
refactored assertEqual and assertIn
changed assertion isinstance to assertIsInstance