Add some tests for activity and service.