Make tests
Fixed alloc to use correct size