Added tests for ForComprehensionTest.
Corrected misplaced IS NULL.
Checked None in most cases.