fix tga unit test