Added tests for deprecation of labels