added tests for core