Found mistake, memory from string was freed (points) right after updating testresult's reference.