minor updates to spit-testing function