Add more assertions and cleanup to setup passwords tests (#46289)
Add more assertions and cleanup to setup passwords tests (#46289)

This commit is a followup to #46206 to continue debugging failures in an
elasticsearch homedir being created. A couple more assertions are added
as well as a final cleanup at the end of the previous test to the one
that fails.
nknize/elasticsearch,coding0011/elasticsearch,GlenRSmith/elasticsearch,gingerwizard/elasticsearch,nknize/elasticsearch,scorpionvicky/elasticsearch,coding0011/elasticsearch,coding0011/elasticsearch,coding0011/elasticsearch,gingerwizard/elasticsearch,gingerwizard/elasticsearch,uschindler/elasticsearch,robin13/elasticsearch,gingerwizard/elasticsearch,uschindler/elasticsearch,scorpionvicky/elasticsearch,HonzaKral/elasticsearch,GlenRSmith/elasticsearch,gingerwizard/elasticsearch,uschindler/elasticsearch,robin13/elasticsearch,robin13/elasticsearch,GlenRSmith/elasticsearch,GlenRSmith/elasticsearch,scorpionvicky/elasticsearch,HonzaKral/elasticsearch,uschindler/elasticsearch,uschindler/elasticsearch,HonzaKral/elasticsearch,nknize/elasticsearch,gingerwizard/elasticsearch,scorpionvicky/elasticsearch,robin13/elasticsearch,gingerwizard/elasticsearch,scorpionvicky/elasticsearch,HonzaKral/elasticsearch,nknize/elasticsearch,robin13/elasticsearch,GlenRSmith/elasticsearch,nknize/elasticsearch,coding0011/elasticsearch