fixed many more unit test segfaults and non-passes. Mostly uninitialised memory, wrong get_name, wrong generic type