test: add invoices and refunds functional tests

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