Add test file for API (partial)