change run.mode in test