Do not test the metadata_items limit when there is no limit

Change-Id: I08919f935df1f34e8b75efa2772b08a9eb643872
Closes-Bug: #1401116
Merge "Do not test the metadata_items limit when there is no limit"