Utilities for nodeunit with promises