Most worm species are diagnosed by the ova (egg) which requires microscopy. The reason for ova id is that the ova has distinctive features for each parasite.
Adult worms typically look the same, again most telltale is tapered heads/tails, they are very distinctive. Adults are hard to get a positive id since many can resemble another unless based on size such as pinworms.
Qualified labs should help in identifying. Whatever you are taking may have some astringent properties therefore loosening the material and may be providing kill off. It is always best to get identification of the pathogen then treat accordingly since protocols vary from pathogen to pathogen.