Fix flaky LoaderTest tests.

Some LoaderTest tests were flaky. This CL removes the need
to change the orientation of a device to run the loader tests,
reducing dependency on other systems.

Test: ran fragment tests
Change-Id: Ia36871961cdbdbacf383d4e0c548e404baecd652
6 files changed