Replace placement new with a static allocator

Remove weird bug created by weird people.
Also, adding new test in main.