[core]unit tests