Unhandled Promise Rejection - From https://stackoverflow.com/questions/40500490/what-is-unhandled-promise-rejection
var myfunc = PTest();
myfunc.then(function () {
console.log("Promise Resolved");
}).catch(function () {
console.log("Promise Rejected");
});