Fixes a lot of comments on tests(libstapi, CFG, make the code simplier, add const, newline)

Issue: #32