jlog: fix tests to use SendMessage instead of Write