Extract common methods as parent class's ones
Complete missing comma
Omit MainControllerTest#test_get_index_query

Because background droonga processes not running on Travis CI.