Fixed test failing on Android

As requested in https://jira.appcelerator.org/browse/ALOY-838