Don't call logging.basicConfig on module import

If `yubico.yubico` is imported before an application calls `logging.basicConfig`, the logging options are set by this module instead of letting the application set them.

I've moved logging.basicConfig to only be called when running tests instead of on import so it doesn't overwrite an applications configuration.