api sample test - working