It would be really nice if we didn't depend on jQuery's promise implementation in these tests (``state`` is non-standard, afaik).