set up factory testing