Added test case for WebContextRegistry