test ruby block