There was a missing package_id parameter in part of the Tcl API. HOWEVER, don't believe the bug-tracker Tcl API that misleads you into thinking that you can explicitly pass package_id as a parameter to various procs. The vile bug_tracker::conn proc guarantees this does not work. I rewrote my test case to save/set/restore ad_conn package_id ...
Added test subdirectory and first cut at the first test (which doesn't work at the moment, but never fear). Decided to write some simple tests for this package while working out how to write populate scripts to test scalability (fix scalability, we already know it sucks on PG!) ...