Add rotate tests in in_tail plugin