Add unit test for style.context() using a dict.