Added tests  to core