SDL test code