Handle changes in total results while processing function. Fixes #22
Add basic products integration specs