*add a test case and fixed one error for checkonephasesolution