testing api basics