adding api object and testing in bootstrap