convert testing framework to nosetests