Test for StateCache instantiation