Buffer 0 case implemented, tests added.