find_new_uid() and find_new_gid() methods added. tests for cli interface were added.