Corrected major errors that prevented nose from running the tests