Fix most of the tests and have to introduce some temporary ways to pass configuration files.
Fix small bug in tests, now all running again.