quartz/tests: Fix a crash in test_allocate_surface_helper().