Add `resultException` to retrive potential exceptions from test results

I could do it with the `maybe` from `generic-maybe`, but in the end thought it was simpler to just imitated `resultSuccessful`.