Add support for copy boundaries to mhd/test.cpp.