completed invoice tests for BI
Merge branch 'invoice_tests'