Unit Test core functions