Add unit test for allocate_shared construct case