Sort logging in test helpers

Signed-off-by: rsnape <rsnape@dmu.ac.uk>