factory testing