I forgot to replace
add_cacheaction( 'wpsc_cachedata_safety', 'dynamic_output_buffer_test_safety' );
with
add_cacheaction( 'wpsc_cachedata_safety', 'dynamic_cache_test_safety' );
but I'm not able to get things working: I simply don't see the code replacement.