promises pattern for create-room-test.js