More tests, and moved plugins/interfaces.py to common/interfaces.py