Test for issue 1279 around duplicate labels.

This was an issue in M06 (not in previous versions), that has since been fixed.
Test case added as verification.