fix modes tests