[3128]Added tests and GUI for invoices.