add tests and functionality for creating invoices and corresponding invo...

...ice_items
closes #50