Fixed issue #153 - added auto syncing integration tests

Since this is basically copy/pasted from above, my earlier comments also apply to this code block.