Optimized blackberry.invoke test-app tests

Reviewed by Jeffrey Heifetz <jheifetz@blackberry.com>