Generalised the inference test