add test
extend buffer ( fix issue #7 )