added a test case which has quite a few phis