Removed amnual warning handling in test_label.py and used assert warns in place