Simplify test for 'config' command
Handle invalid configuration file format