a test for postmessage