Label validator unit tests

Wrote some unit tests to check the recent fix to the label validator