fixed tests

quick fix as there will be a new release pretty soon

closed #68 #72
I was getting some weird errors about free() after the test had actually finished successfully. They were resolved by quiclky making everything old school pointers.