Moved generate test data from client to connection.