Adds config to controller tests, fixes coding style
Moves config field to the right place and removes exception for wrong json string