tests adapted to nosetests