Added exception test for setLabelOptions