mock type change