finish tests for factory'