updated test.js to reflect changes to api/createOrder