adding unittest for usermanager