Refactor test/plugin/in_tail.rb