fix syntax for tape client
fix write after end for tape tests

close #108