Made test a bit more robust to timing issues.
DefaultServer.invalidate needs to invoke the change listeners.