Add a RemoteMessagePipeTest of writing to and closing a message pipe, before attaching/running it.

R=yzshen@chromium.org

Review URL: https://codereview.chromium.org/661643006