Header for DeletedState

[skip ci]
Mocks for state contexts to simplify unit-testing
Connection property moved to the StateContext class