More testing got done! Fixes a wrong param in delfactoid->isvalid