tests: fix the expected string tests on Android 4