Bug fixes/improved testing architecture in Memo.scala