better way to output test log