remove messagelist (replaced with nodelist)
made test a bit more flexible, mit variable count of nodes