extend Pig test
extract buffering logic to self container class