Updated the test so it knows the invoice interface was returned and updated some bad code