created base activity unit test case for injecting activities under test.
extracted out common code between base activity and service test cases.