test_use_write_command fixes

RUBY-676