add some testing for the REST handlers