Implement core unittests