add testMessages to test socket function