Refactor MemoDocument to be test object