Fixed test case 6, now stuck on scan initialization in test case 7