partially repaired the SDL UI unit test
improved SDL UI unit test