server: fix testings

Make WaitMode panic to alert.