I recently switched from using page to max_id to prevent duplicates from appearing due to new tweets. But there seems to be an issue when hitting the end when doing a search. It results in an error of "Couldn't find Status with ID=[id of tweet]". The id that gets returned in the error also doesn't match the ID that I passed in. I can reproduce it everytime.
To reproduce: Do a search for "#tests" then take the ID of the last tweet and do another search using that as the max_id. Also search and favorites API methods does not list "max_id" as a parameter but they do work correctly with max_id besides the issue above. Shouldn't they be included in the docs?