Revert "Remove pending from API payments test which seemingly works OK"

This reverts commit 12218bcd63614db7d2d7c69c3f0ae2a36cc33c5f.

This still raises the problem on the CI server. TBI later.