add code for state based tests for ch3