added code for testing service.