Test for nested case class.