string_slice_set_tests: check exceptions raised