Fixed invalid tests