Added unit test for case where a slice is reshaped
Added unit tests for ND slice