test logical_labels()