unit tests for extendCore