added ASSERT_DATA to compare buffers