test service hooks