switched test api call to more sensible structure

using .done(), .fail(), etc on json calls