finished convering TT Core with tests