Move openSlice/closeSlice to testhelper