moved syncForTest to megahax