moved autoreleasepool a bit in factory. tests are running
extracted Lion check in pch