Cookie test

Just realised that I created a pull request on the wrong branch - I wasn't able to get those tests working.
Everything up to https://github.com/qcode-software/qcode-tcl/pull/66 works fine, though.