Really we must use the asynchronous way of doing tests here because the calls to mozContact are actually asynchronous.

If you want I can also probably help by providing a PR