Clean up some image tests.

Make ImageSpaceLoadingTest<false,.,.> use a custom image
location based on ScratchFile to avoid accidentally finding
a pre-compiled boot image in default location.

Add -Xnoimage-dex2oat to Dex2oatImageTest to avoid useless
dex2oat invocations that just slow down the test. Suppress
error messages from image loading that is supposed to fail.
Compile only 3 dex files in TestModesAndFilters to make the
test faster (29s->20s on host).

Test: m test-art-host-gtest
Change-Id: Ia92e85f056027003d2fb50aa871c9fae7a5fdc01
2 files changed