tests: fixed "will be initialized after" compiler warning in state_test

Signed-off-by: Johannes Meyer <johannes@intermodalics.eu>