unit tests for core libs