Added test to verify the database is not throwing an error when limit is greater than max rows.
Merge branch 'max_limit' into develop