Add unit test for format_numeric function in instancevalues_helper.