add unittest and delUser function