fixed function call syntax, an incorrect fix of a var-vs-ptr issue, and moved the line of test code as I'm homing in on where it is defined