Improved tests. Fix slicing in listObjects