Rewritten the correct_complex_sources.py script and fixed the scenario tests