Add integration test for state variables.