TST: test complex and/or/invert criteria