Fix async unit test.

It doesn't make any difference considering the calls to pajamas in order to *start* the AJAX request are executed synchronously. Nevertheless, the test shouldn't know about this. Also, it wouldn't hurt to actually test if the result is the previously cached object.