Calculating largest block size, added test function [skip ci].