fixed factory for tests