Added test harness for API calls