added test for promises yielding
added a bind()