fixing invalid tests