Unit tests that would save me some head-scratching later

Thanks for a great workshop and quiz yesterday!

These are the unit tests that I missed (and noted down), which would have saved lots of head scratching and endless stack traces and other problems in the later parts of the workshop.