More elegant and functional implementation of multilinks test.

  This is now simpler and easier to read.