Cleaned up memory leaks in test harness, added ability to emit ping frames, added ping test