added unittests for CubeMetadata