fix spurious test failure on android < 4.4, fixes #17838