fixing nosetests