added tests for get_blocks_num method