add unit test to generate new password