update vector reserve test code