replace getInOrderTxs with getAllNodes

it is just... more useful this way
move test support functions into helper.js
compareNodes compares nodes according to dependency relationships