porting keeps size test over to TermBuffer test