testing the stubbification of $api.call