analytics: add a bunch of tests for BusinessInvoiceFactory

This also fixes a bug where non valid CBA adjustments would be added on
unpaid invoices.

Signed-off-by: Pierre-Alexandre Meyer <pierre@ning.com>