refactored test suite with nose