Test API code (incomplete)