fix some tests in environs/sync