Pulled message test routines to a util file