don't for get to use row cache in get latest. Fix up unit tests