add test case for new API of Label.