Implementing test of class PhasesController