Swap retain and restore method names; was very confusing to read
Add unit tests for Memento class

fixes #2