Add checks to prevent misconfiguration causing PHP errors.

Also add some missing configuration requirements.
Add unit tests for relationship generator plugin - WIP

+ Add some configuration-check testing unit tests
+ Add configuration files for tests
+ Add plugins test suite to phpunit.xml