updated for nosetests.