Added a member function test for value function.