Simplify the test code by using the new recv() syntax