add tests to verify the algorithm for Optional strings in Memento