Fix an initialization bug in testing code, but value is still wrong.
Fix the return type bug in expand_value