finished invoiceitem relationships tests and lib files