unregistering notifications when running unit tests