Limit metadata to 1

In Ruby 1.8, Hash element ordering is different from Ruby 1.9 and above
so this test will fail if it has more than one element.

Change-Id: I3ee3812562c574f7d6dcead6e068011321e89915