Fix some tests as revealed broken by Wildfly

Add the ability to wait for a moment (snooze() function).
Expect a notification on password change.