moved factory tests to integ tests