added tests for allocations