Fixed a typo
Most tests work now :D
checks mallocs
nullchecks