added simple helper for properly handling promises in my tests