I did not want you to parse the actual messages to check the computation of the Pseudo-LH, but to check that the messages that are generated are looking good an informative. If you fix the random seed and the string value should stay constant so you can just put an assertion on the buffer content using a simple assert_equal on string values.