It's possible that the pills that showed up were old pills and that you have been digesting some of them, which is why the results were eratic.
I've had pills show up in my feces and now I crush those and drink them in water. But, I was taking twelve triphalla per day and found two in my stool the couple of times that I looked, so some of them were making it.