Fix promise tests. There's probably a better way to do this.