test for all methods corresponding API