fix error_state name which fixes testing flow from error state