Cannot Call Promise.then From Within A Sync Test