Faking bdd.when for asyncronous tests