Move test_size and bind_fid into common block.