Changed to use nosetests