rewrite test_M27