deferreds test