added tests for value_of