password func testing