Fix test failures from nose bug on buildbots