Truncate all limits to 1k max.

Added trucation and query tests