Adjusted regex in mode test case