Add test case for scala style case class.
Implement scala style case class.