Testing the allocator, also better demo program for the lua code