test for backtrack