Make tests portable.
Remove unneeded use of runTestOnUiThread(...).
Merge branch 'refs/heads/portable_java_tests'