Check return value in _get_logical() test