create bean for event service, complete the test case