Fix two test cases for WebMessaging message clone

Logical errors in the code. FF and IE will pass after the fix.