Seeing test assertions made inside a `map` (or `foreach` etc) raises a little red flag for me. Do you always expect these optional values to be defined? If not then why is the test not deterministic? If they should always be defined, then I would make that unambiguous. In a contrived test case like this I think a `.get` is acceptable way to do that.