Fix flaky test cases in Activity Manager tests Make sure the test services are cleaned up after tests Bug: 141756892 Test: atest CtsAppTestCases Change-Id: Ia34fa939377ec8cef204007f9b9b470e71ceed20