Xtc: fix logical errors in tests