Added tests from SDL.