use api success & api failure & apiSetup for cleaner tests
Merge pull request #1002 from eileenmcnaughton/apitests

use api success & api failure & apiSetup for cleaner tests