Improve GetForEachRef() tests (re #120 and #123)