Implementing test of class Phase