clean up TestTail
exhibit a bug in Tail
fix a bug in Tail
Merge branch 'tail-fix'