Fix invalid tests