Added a PhaseController with corresponding test