factory tests are working