Added tests for ->slice() method.