Fixes test 3.2.6 by allowing promises to be functions

Patch fixes test 3.2.6 by allowing promises to be either functions or objects.