added callback to translator and some tests