Fix nosetests