test for mode flag (todo)