add UserApi klas and testing klas, fixing sth in other classes.