Heartworm infections may be occult for a number of reasons: A heartworm test is to check for the evidence of the parasite Dirofilaria immitis, more commonly known as heartworm, in your dog's bloodstream.