Added translate_test function.