update nxjson engine alloc withj contiguous allocator, add some tests