Prevent dangling promises in router tests + better error messages.