Make test more reliable and debuggable

- Move items that are unlikely to fail (and are referenced
in tearDown()) earlier in setUp()
- Catch and log errors in tearDown() because otherwise they are
hiding errors in the tests
- Add a delay after sending the command to allow the service, since
that is an asynchronous action

Test: atest ConditionProviderServiceTest --rerun-until-failure 25
Fixes: 276194891
Change-Id: I4df50b0443eca143ec3ef38b80abdd2770b8a750
1 file changed