Merge pull request #800 from rustyswayne/1.4.0

Adds test helper to generate a large number of invoices and orders
Tweaks on invoice searches