remove the duplicated part of nosetests