Added test case counting using loops. Fixed conditional jumps.