Fixed bugs in GetValue functions. Add default value test, and update value test.