diff --git a/indra/tests/test_db_rest.py b/indra/tests/test_db_rest.py
index <HASH>..<HASH> 100644
--- a/indra/tests/test_db_rest.py
+++ b/indra/tests/test_db_rest.py
@@ -1,6 +1,7 @@
 import random
 import unittest
 from datetime import datetime
+from time import sleep
 from unittest import SkipTest
 
 from nose.plugins.attrib import attr
@@ -235,3 +236,19 @@ def test_get_statement_queries():
     urls = get_statement_queries([stmt],
                                  pick_ns_fun=lambda x: '%s@%s' %
                                                        (x.name, 'XXX'))
+
+
+@attr('nonpublic')
+def test_get_statements_end_on_limit():
+    p = dbr.get_statements(subject="TNF", limit=1000, timeout=1)
+    try:
+        t = 0
+        while p.is_working():
+            assert t < 100
+            limit = p._get_next_limit()
+            assert limit != 0, limit
+            sleep(1)
+            t += 1
+    finally:
+        p.cancel()
+        p.wait_until_done()
Add test of limits when applied over pages.