stronger test (not deterterminist if txindex=0)