Replaced checks for "ERROR" with checks for init.
Fixed issue with assertAnalyzerWarnings, where it would break if the warning says was on line zero.