Update runtests.sh
Update slices functions.