Fix some tests to work in prebuilt ART module mode.

test_for registers dependencies on the APEX modules, so don't use it
when they are disabled.

Test: m nothing SOONG_CONFIG_art_module_source_build=false
Test: mmm art
Test: art/tools/buildbot-build.sh
Bug: 172480615
Change-Id: I67e25e80926054390ebd8ad4cf54da44afc71315
2 files changed