Fix urgent error in context parameter settings.
Paranoid unittest for context initialization and settings of context parameters.