test_state added back