Checking in some test functions

for testing memory leak with large messages