Added a very simple API testing code