Restored socket test and added the beat.