Api key validation on ping request with test added