changes value from string to obj which contains the value stored as a number and the flag, updates tests to test for correct object values