Finalize invoice test