fix tests from nose