Add PhasesModel tests