Add tests to core