add configuration tests and fix a bug

solve #40

adding lots of testing on the configuration with the help of matthiasnoback/symfony-dependency-injection-test

for now leaving out xml testing, as there are issues. will do a follow-up PR but hope we can merge this fast as it fixes a bug.