Modify test-api.js to check filesystem globbing and iteration