testuninitvar: changed test cases to do not rely on ExecutionPath.

This commit changes a few test cases from ```testunintvar.cpp``` and switches the checking from ```checkUninitVar``` to ```checkUninitVar2```. ```checkUninitVar2``` does not rely on ExecutionPath.