Fixed test failing on Android

As requested in https://jira.appcelerator.org/browse/ALOY-838
Merge pull request #280 from FokkeZB/patch-5

Fixed test failing on Android