renamed BadgeAssertion.badge_class to .badge.
A separate context is no longer used for templates.

Objects themselves are put in the context, which makes it more natural to
use the object APIs to access needed information.
added another test.