fixed testing environment and adapted it to Python 3.2