Fix tests failure on Android 2.3