update tap protocol version to 13
synchronize writes to keep test lines in order