added test case for slicing