Fix up unit tests

* Add onCall helper to abstract away callCount
* Use proxyUA rather than Mobify.analytics.ua
* Use asserts rather than if statement checks