test code

some test code getting queries to the REST endpoint