Fix StateContextMock class