move temporaryfactory out of scala.test