refactor an sdl1 test
add ports sanity check; #2404