Only require nose for tests (fixes #12).