fix invalid tests