unit tests for metadata value object.