string_slice_tests: test the new callback-based constructor