added warning-msg if length expected_value != actual_value != state.