ApiWrapper class test