rough draft of generic rest tester