fix a issue on Config.asObject() and update tesst case