simplified promise stubbing