improved sdl test