addressing code review comments
make sure we don't return too many results
Forgotten to change method call for new signature
don't for get to use row cache in get latest. Fix up unit tests
minor changes on second review
Merge pull request #1258 from marcel-blonk/PLFM-2734

addressing code review comments