Add a test for named guards.  Fixes #8