* memo.tests: move some useful function to utils.py