add reset collection memory and merge tests