testing save vector data to file