Make tests work with nose test runner.