refactor MDARRAY tests into a more appropriate package