Fix tests on Android

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>