new function generatePassword(master, application)
unit tests