This test demonstrates the use of promise_test. Assumes ECMAScript 6 Promise support. Some failures are expected.