adding testing support and using it for ApplyDivide tests
names changed to protect the innocent