Add some unit tests for value_t