Added test for err slicing.