Wait for sufficient idle nodes

Previously the test could start and fail due to completing jobs