Have the proposed short writeup as a gist here.
Note that there is still a potential bug when running the test, but that is out of the scope of my initial question here. Has to do with permissions in the vm spawned by the test. If I come up with progress on the former I will open up a new topic and link it here.
Thanks again for helping!