Add the test of NeubotConnection::write_rand()
Fix write_rand() implementation
Fix write_rand_readbuf() implementation
Fix write_rand_readbuf() implementation