add unittest
Merge branch 'master' of https://github.com/nesanter/kgc