Added 'order by id' option to server helper function testAPI