sdl: added optional tests

Adds optional tests to SDL.

Closes #34353