fix test case with hard coded values to be relative to buffer size