Writing tests for Bluebird backed code