added shutdown handshake to test_remote_actor

the added shutdown handshake fixes a possible unit test failure
(remote actor calls `shutdown` before final message was sent)