Fix wrong error output; reset labelsetimage
The labelsetimage needed to be reset in "TestRemoveLabels()" in order to
be correctly initialized. The test might have been correct but writing the image
to disk stored an incorrect labelsetimage (with the removed labels still present)