add tests of read/take for client lib  #7