Remove unused buf variable from path/core test.