add additional test case to verify that the maybes work with nontrivial classes