More specific mocking for buffer_get_string and info_get.