modified test_mvn.cpp