Try setmode for tests