implement the unit test to receive data (1024bytes)