clean up TestTail
exhibit a bug in Tail
fix a bug in Tail