Change all new `assert`s to `expectResult`s in tests

... following @tpolecat in f4b869b430.