Find a nicer syntax for the write_config test

