add test for resource acquire fail

Tests that the resource acquisition in promiseMachine.js will retry on fail.