Update blackberry.invoked unit test to fix race condition

In some cases success was not yet called when invocation handler completed.

Reviewed by Jeffrey Heifetz <jheifetz@blackberry.com>