tests for core library