fixed invalid tests