added tests for restful endponits, and began stubbing out the endpoints