Experiment with some "test+promise helpers" to avoid uncaught errors.
Refactor test helpers into a promisified 'test' function.