Fix regression in capturing tests