Fixed test env for 2.6 python
Fixed reference to factories