test: Make job event waiting more explicit

See discussion on commit 16e2160