FIX: Unit-test + mne.logger

- Made the unit-tests compatible with the "with" format.
- Fixed issue of mne.logger propagating and appearing twice.