Added invoice test code