payment: add tests for DirectPaymentEnteringStateCallback

This fixes some discovered bugs too.

Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>