updated API tests for recent changes, added pagination to API