Add TestFactory class to regression module