Fix some tests.

- Use get_domain_string instead of get for mdns and chain
- Make Chain a subclass of Source so it can have get_domain_string
- Add missing import statement in source.py