fixed query.slice tests