tests: Wait for log messages for up to 5s, like all other test timeouts