Added tests; allocator seems to wok properly