Test receiving data from server.