added tests to core