Fixup unittest following emplace fix

Just a very quick resurrection of the unittests I had written in #1174 , as well as a fixup of the existing tests, that depended on emplace being fixed.

Also added that array only accepts non-inifinite ranges.