Add reset collection memory and merge tests

Adding tests proposed by @caseywebdev in #2098