tidy up imports in __init__.py
improve test for ReceiverConfig