Add test to verify fix of a password update bug (OMS-531)