case classes tests