Fixes race condition in test. Closes #9389.

The busybox container, when started as a background process, quickly stops itself. Changing stop to wait is equivalent but doesn't have the race condition mentioned in #9389