This `assert` will always pass since `mode` always is either one of two String:s. The intention was clearly `assert_equal`. Will-fix: #10926