added test for buffer
fixed test