added is_service_fail() implementation and tests