Move rmailmm test functions to test/ directory.