Just realized that there should also be a test case that checks that no upgrade is being done when the password is wrong. I'll add that later.