add test for CLI with --write-config