Add some unit tests

Add some unit tests (not a complete test yet, but it's a start). Update
the Working Draft to be even clearer about the ability to use <bot> and
<env> to set the variables.