tests to factory