Adds unit tests to persistence module
Removes memoization util since no one uses it now