e2e tests - introducing testing mode

In the testing mode a different phrase generator will be instantiated.
This phrase generator returns always a single phrase on which can be asserted in the tests.
Additionally I extracted the config handling to the data access layer.

includes the fix for #51