add unit test for syncOutbox