tests: fix nosetests