Test for twice allocate