Fixed slab allocator to actually extend

Fixed slab allocator to actually extend and added tests to see if it
works as intended. Only issue seems to be that it break if there are too
many allocations.