add class coyping translation, and some tests