add wrappers for calling api & checking success or failure in call
Merge pull request #1003 from eileenmcnaughton/apitests

add wrappers for calling api & checking success or failure in call