This has gotten kind of hairy.  Added basic test code to ooniprobix