Writing tests for GetSlice.