Add test case for pre-allocate api.
Add test case for pre-allocate api.

codeb2cc/gmcadmin,imadige/gmcadmin,imadige/gmcadmin,codeb2cc/gmcadmin,trigrass2/gmcadmin,trigrass2/gmcadmin,imadige/gmcadmin,trigrass2/gmcadmin