add restet collection memory and merge tests