Better stub test for Promise