fixing tests, restructured warning flags setup
adding tests for cli
added missing header to SOURCES