QUnit example for API.js