Refs #7: when generating ContextRoles, also generate unit tests