fix(core): update CodeClimate token
chore(core): refactor code
chore(test): diversify test files