[test_*.c] fix missing initializers in testcases
[CMakeLists] add extra warnings to cmake
Global bug popping and warning fixing