Fix mode test