Fixes broken expectations in the invoice extension spec

This change fixes two similarly named variables (pending_invoice and pending_invoices) to be the same. The spec was also comparing an Invoice object to a Fixnum, when it should be checking the Invoice id.