test2 is redundant
IMG_GetError is just an alias to SDL_GetError