fixing nosetests addresses #1157