Don't use shared_ptr (seems to cause double-free for whatever reason + no need to copy data)
Minor test-changes in main