It sure depends on what the chemical is that is in the tank. All I have are some suggestions, no answers. Weird how the shrimp are fine, but fish die.
1) If you think it was some reagent in the test kits then contact the company that made the test kit. Explain that you think that is what happened, and have them suggest a way to remove that material.
2) Activated carbon has a pretty good affinity for many dyes, perhaps some of the color-reacting materials in the test reagents. I do not know, but I would start by running AC in the filter, and changing it out weekly. Also look into all the *zorb sorts of things you add to the filter. Cuprizorb, Phoszorb and others.
3) Even though they seem the same, could the deaths be from different causes?
4) Some ways to disinfect aquarium equipment if you suspect a disease:
Remove and throw away plants. If something is on a plant there is no way to sterilize the plant without killing it. Alternatively you can use any of several materials at very weak doses, keep the plants alive, but not know if you are killing the disease. (Bleach, hydrogen peroxide, Excel, potassium permanganate, other)
Thoroughly clean the whole system to remove all possible organic matter, loose and biofilms. Scrub all surfaces.
Run the full set up with chlorine bleach. One possible dilution is as weak as 19 parts water to 1 part bleach. I would go stronger than this.
Thorough rinse, then run the whole thing with a double dose of dechlor. If you cannot smell bleach that is fine, otherwise 100% water change and run it again with another double dose of dechlor.
Then wipe everything down with rubbing alcohol. Use a tooth brush or other small tool to get into every corner. Air dry, even setting everything out in the sun and rotating it. Rubbing alcohol evaporates.
I understand how Poret might be something you want to save. You might contact the company and see if the material it is made of tends to grab unknown chemicals, and if you can sterilize it against possible disease organisms as I have described. I would throw away all other media. Cheaper to replace it than to have to go through all this again.
I know you can treat gravel, rocks and sand this way (bleach, rinse, rubbing alcohol, expose to sun), but I am not sure about many other substrates. The softer, porous ones might take in some of the chlorine for example, then release it later into the tank.
Driftwood can be boiled, baked or run through the dishwasher (no detergent).
To bake driftwood: Put it in a low oven (250*F) while it is very wet. Bake until it is dry. The steam of the water getting boiled out of it is that thing that kills a lot of disease organisms. You can do this to potting soil, but it can stink. If you can cook it outside that is better.
You can build (very easy) a solar over, and solarize most of the substrate, filter media, driftwood and rocks from an aquarium.
When all that is done wash it all over again, then set it all back up again and run the fishless cycle, but keep some activated carbon in the filter, and keep changing it out just in case some chemical has made it through the process.