Add more tests for invoice API and get back to 100% coverage, yeah!