added case class test