Improve test coverage for slices