Adds further tests for the sync-optimize tool.