[PATCH 01/11] test: Correctly match "background" with "wait" commands