udpated test/api.js to fail