fixed warn in test case.
fixed warn.
update test case.
Merge pull request #6075 from Dhilan007/develop_label

fixed warnings in LabelTest.