sg_labeled_shape_test. Revised

sg_labeled_shape_test. Revised tests for __eq__ and __ne__