fixing the test flag array to the actual one