Fix regression in tests