Adding unit tests for the core.