MDL-45147 my: automate testing of block restriction