test promise ctor replacement