core: fix code style
core: add some integration tests
core: remove redundant spaces for enums