Added some basic test coverage to Invoice.js.