Fix checkmode test