Added a test (and supporting code) for retrieving slices