```ruby
require File.expand_path("../../../test_helper", __FILE__)

module FullTextSearch
  class SearchControllerTest < Redmine::ControllerTest
    include GroongaCommandExecutable

    make_my_diffs_pretty!

    tests SearchController

    fixtures :enumerations
    fixtures :issues
    fixtures :issue_statuses
    fixtures :projects
    fixtures :projects_trackers
    fixtures :trackers
    fixtures :users

    def setup
      SearcherRecord.sync
      execute_groonga_command("plugin_register functions/vector")
    end

    def test_search
      get :index
      assert_select("#options-content") do
        assert_select(".full-text-search-order")
      end
    end
  end
end
```

Add a test for issue search
user
```ruby
require File.expand_path("../../../test_helper", __FILE__)

module FullTextSearch
  class SearchControllerTest < Redmine::ControllerTest
    include GroongaCommandExecutable

    make_my_diffs_pretty!

    tests SearchController

    fixtures :enabled_modules
    fixtures :enumerations
    fixtures :issue_statuses
    fixtures :issues
    fixtures :projects
    fixtures :projects_trackers
    fixtures :trackers
    fixtures :users

    def setup
      SearcherRecord.sync
      execute_groonga_command("plugin_register functions/vector")
      @request.session[:user_id] = User.admin.first.id
    end

    def format_issue_titles(issues)
      issues.collect do |issue|
        "#{issue.tracker.name} \##{issue.id} (#{issue.status.name}): " +
          "#{issue.subject}"
      end
    end

    class OptionsTest < self
      def test_index
        get :index
        assert_select("#options-content") do
          assert_select(".full-text-search-order")
        end
      end
    end

    class IssueTest < self
      def search(query)
        get :index, params: {"q" => query, "issues" => "1"}
      end

      def test_search
        search("print OR private")
        issues = [
          Issue.find(6),
          Issue.find(1),
        ]
        assert_select("#search-results") do
          assert_equal(format_issue_titles(issues),
                       css_select("dt a").collect(&:text))
        end
      end
    end
  end
end
```
assistant