Fix for nosetests.