Get the tests for the metadata package to work for go 1.7

This change can be simplified when compatibility with go 1.6 is not necessary
anymore.

Change-Id: I7ec9e2fc1a13578db535da0c739137b771318445
1 file changed