testing the service hook