server: corrected defaults applying

and adds test coverage for config loading