userservice  and deviceservice unit  test