testing the gridstate in the engine