factory tests