added unit tests for slicing