Add a unit test for proper case class serialization in jobs