Changed it to 
 assertex(_logicalname.isExpanded());