Added test case for allocations