I’m just learning the Gutenberg editor and I might be wrong, but it seems to me that inside the initializeBlock function you can only operate on the $block variable. Try this:
var initializeBlock = function( $block ) {
$testimonials = $block.find('.testimonials');
$testimonials.slick();
}