Modified to use nosetests to run testcases.