New test shows when body is fighting a virus