Raises a ValueError instead of a RuntimeError when context name is
missing.
Minimal unittest.