Move testing stuff to testutil

testutil will be used by delayd-bench
No need to use a slice of a pointer to Message.