test_phase: add a regression test