Add command handler tests for flush, read config and write config.