Tests and doco for nested-case-class situations