Testing for intransitivity of preferences predicted by a lexicographic semi-order